package com.example.testplanetorbit

import android.graphics.Canvas
import android.graphics.RectF

abstract class BaseDot() {
    var mPos = FloatArray(2)
    var mTan = FloatArray(2)
    var mOrbitPathLength : Float = 0f
    open var mDistance1 = 0f
    var lock = false
    var mStep1 = 0f

    abstract fun changeHorizontal(moveLeft:Boolean)
    abstract fun init(direction: Boolean)
    abstract fun setPath(re21: RectF?, resetPath:Boolean)
    open fun drawOval1(canvas: Canvas?) {
        if (firstDrawOval) {
            mDistance1 = mOrbitPathLength * mInitDistanceRadio
            firstDrawOval = false
        }
    }

    var mInitDistanceRadio : Float = 0f
    var firstDrawOval = true

    fun initDistance(radio:Float) {
        this.mInitDistanceRadio = radio
    }

}